# -*- encoding: utf-8 -*-
import array

numbers = array.array('h', [-2, -1, 0, 1, 2])

memv = memoryview(numbers)

print(len(memv))

print(memv[-2])

memv_oct = memv.cast('B')

print(memv_oct.tolist())

memv_oct[5] = 4
print(numbers)
